import request from '@/utils/request'
export default{
  listStorage(query) {
    return request({
      url: '/admin/storage/list',
      method: 'get',
      params: query
    })
  },
  createStorage(data) {
      return request({
        url: '/admin/storage/create',
        method: 'post',
        data
    })
  },
  readStorage(data) {
      return request({
        url: '/admin/storage/read',
        method: 'get',
        data
    })
  },
  updateStorage(data) {
    return request({
      url: '/admin/storage/update',
      method: 'post',
      data
    })
  },
  deleteStorage(data) {
    return request({
      url: '/admin/storage/delete',
      method: 'post',
      data
    })
  },

}

const uploadPath = process.env.VUE_APP_BASE_API + '/admin/storage/create'
export { uploadPath }

